package com.ruge.api.publics;

import com.ruge.api.publics.dto.response.LocationResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * description: MapApi
 * create time at 2024/4/23 21:51
 *
 * @author alice.ruge
 * @since 0.0.3
 */

@FeignClient(contextId = "ruge-publics", value = "ruge-publics", path = "/publics/inner/map")
public interface MapApi {

    @GetMapping("/getLocationByAddress")
    LocationResDTO getLocationByAddress(@RequestParam("address") String address);
}